﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListView.aspx.cs" Inherits="EmployeesWithGridView.ListView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>List View</title>
    <link rel="Stylesheet" href="Site.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:listview ID="employeeLV" runat="server">
             <ItemTemplate>
                <div class="normal">
                    <a href="FormView.aspx?id=<%# Eval("EmployeeID") %>">
                        Full Name: <b><%# Eval("FirstName") + " " + Eval("LastName")%></b>
                        <br/>
                        City: <%# Eval("City")%>
                        <br/>
                        Address: <%# Eval("Address")%>
                    </a>
                </div>
            </ItemTemplate>
            <AlternatingItemTemplate>
            <div class="alternating">
                <a href="FormView.aspx?id=<%# Eval("EmployeeID") %>">
                    Full Name: <b><%# Eval("FirstName") + " " + Eval("LastName")%></b>
                    <br/>
                    City: <%# Eval("City")%>
                    <br/>
                    Address: <%# Eval("Address")%>
                </a>
            </div>
            </AlternatingItemTemplate>
        </asp:listview>
    </div>
    </form>
</body>
</html>
